<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<!-- 内容主体区域 -->
<%-- 权限判断 --%>
<shield:permssion type="button">
<div class="show-info" >
	<form action="${ctxPathA }/setDSSource" method="post" autocomplete="off" class="layui-form">
		<shield:token/>
		<table class="tab-show">
			<colgroup>
				<col width="120">
				<col width="">
			</colgroup>
			<tbody>
				<tr>
					<th class="t_r"><label>数据来源：</label></th>
					<td>
<c:forEach var="key" items="${model.allKeys }">
						<div class="block-i" style="width: 75px;"><input type="checkbox" name="key" class="check" value="${key }" ${model.checkedMap[key]?'checked':'' }/>${key }</div>
</c:forEach>
					</td>
				</tr>
				<tr>
					<th class="t_r"><label>是否启用：</label></th>
					<td>
						<!-- checkboxSwitch切换值，选中则赋值为value（没有默认为1）不选中为0 -->
						<div class="block-i"><input type="checkbox" name="enable" class="check checkboxSwitch" value="1" ${model.enable?'checked':'' }/>启用</div>
					</td>
				</tr>
				<tr>
					<td colspan="2"><span class="red">请勾选数据来源并提交</span></td>
				</tr>
			</tbody>
		</table>
		<div class="taCenter">
			<input class="button" type="submit" value="提交"/>
	    	<input class="button default" type="reset" value="重置"/>
	    </div>
		
	</form>
</div>
</shield:permssion>
